home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 247 / 247.d81 / e.keyboard buff < prev    next >
Text File  |  2022-08-26  |  815b  |  41 lines

  1. u                            PRINT THIS
  2.  
  3.            KEYBOARD BUFFER
  4.            ---------------
  5.  
  6.  198: Keystrokes in Buffer
  7.  631-640: Buffer
  8.  
  9.  
  10.            Dynamic Keyboard
  11.  
  12.     To LOAD and RUN a BASIC program
  13. from another BASIC program...
  14.  
  15.  10 D=PEEK(186): REM GET DEVICE
  16.  20 A$="FILENAME"
  17.  30 PRINT"<clrscr><dn><dn><dn>";
  18.  31 PRINT"LOADA$,D"
  19.  40 PRINT"<dn><dn><dn><dn>";
  20.  41 PRINT"RUN<hm>"
  21.  
  22.  50 POKE198,2
  23.  51 POKE631,13
  24.  52 POKE632,13
  25.  60 END
  26.  
  27.  
  28.  After printing the commands to the
  29. screen and positioning the cursor over
  30. the first command, we put 2 keystrokes
  31. in 198, then 13 in 631 and 632
  32. (<RETURN> key). When the program ends,
  33. the two <RETURN>s are executed,
  34. causing the LOAD and RUN to occur.
  35.  
  36.  Note: We can put the filename in a
  37. string variable and not have to fool
  38. with the double-quote marks on the
  39. screen.
  40.  
  41.  
  42.